package tw.asap.plus.entity.response;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by Yax.
 * Date: 15/11/14
 * Time: 上午1:05
 * Description:
 */
public class Address implements Parcelable {


    /**
     * addrid : 地址ID
     * name : 联系人
     * sex : 姓别 0: 男, 1: 女
     * mobile : 联系人手机号
     * area : 地区
     * address : 详细地址
     * is_default : 是否默认 0: 非默认, 1: 默认
     */

    private String addrid;
    private String name;
    private String sex;
    private String mobile;
    private String area;
    private String address;
    private String is_default;

    public void setAddrid(String addrid) {
        this.addrid = addrid;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public void setArea(String area) {
        this.area = area;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public void setIs_default(String is_default) {
        this.is_default = is_default;
    }

    public String getAddrid() {
        return addrid;
    }

    public String getName() {
        return name;
    }

    public String getSex() {
        return sex;
    }

    public String getMobile() {
        return mobile;
    }

    public String getArea() {
        return area;
    }

    public String getAddress() {
        return address;
    }

    public String getIs_default() {
        return is_default;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.addrid);
        dest.writeString(this.name);
        dest.writeString(this.sex);
        dest.writeString(this.mobile);
        dest.writeString(this.area);
        dest.writeString(this.address);
        dest.writeString(this.is_default);
    }

    public Address() {
    }

    protected Address(Parcel in) {
        this.addrid = in.readString();
        this.name = in.readString();
        this.sex = in.readString();
        this.mobile = in.readString();
        this.area = in.readString();
        this.address = in.readString();
        this.is_default = in.readString();
    }

    public static final Parcelable.Creator<Address> CREATOR = new Parcelable.Creator<Address>() {
        public Address createFromParcel(Parcel source) {
            return new Address(source);
        }

        public Address[] newArray(int size) {
            return new Address[size];
        }
    };
}
